<?php
if(isset($_REQUEST['rss_id'])) {
	$rssString = "select url from rss where rss_id=".$_REQUEST['rss_id'];
	$rssQuery = dbSelect($rssString) or die("Error en select ".$rssString." ".mysql_error());;
	$rssResult = mysql_fetch_array($rssQuery);
} else {
	$rssResult['url'] = $_REQUEST['url'];
}
?>

<table border="0" cellpadding="0" cellspacing="4" width="100%">
	<tr>
		<td height="50">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td align="center" class="titulo">ALTA DE RSS</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<form url="frm_alta" method="post" action="rss/operations.php">
				<input type="hidden" name="rss_id" value="<?php echo $_REQUEST['rss_id']; ?>">
				<input type="hidden" name="axn" value="<?php echo $_REQUEST['axn']; ?>">
				<table border="0" cellpadding="0" cellspacing="4" align="center">
					<tr>
						<td align="right">URL</td>
						<td><input class="input" type="text" name="url" value="<?php echo $rssResult['url']; ?>" style="width:600px;"></td>
					</tr>
					<tr>
						<td height="10"></td>
					</tr>
					<tr>
						<td align="right"></td>
						<td align="center">
							<input class="input" type="submit" name="guardar" value="Guardar">
							<input class="input" type="button" name="cancelar" value="Cancelar" onClick="javascript:window.location.href='index.php?admin=rss';">
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>